package cn.mesmile.design.flyweight;

/**
 * @author zb
 * @version 1.0
 * @date 2020/11/21 12:12
 * @description
 */
public class Main {

    public static void main(String[] args) {
        WebSiteFactory webSiteFactory = new WebSiteFactory();

        CloudWebSite companySite = webSiteFactory.getWebSite("企业官网");
        companySite.run(new Company("testOne"));

        CloudWebSite companySite2 = webSiteFactory.getWebSite("企业官网2");
        companySite2.run(new Company("testTwo"));

        System.out.println(">>>>>>> 网址分类总数："+ webSiteFactory.getWebSiteSize());
    }
}
